package com.woniuxy.project.campus.canteen.service;

import com.woniuxy.project.campus.canteen.dto.QueryProductAllDto;
import com.woniuxy.project.campus.canteen.model.ModifyDiscountParam;
import com.woniuxy.project.campus.canteen.model.ProductList;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.project.campus.canteen.param.AddProductParam;
import com.woniuxy.project.campus.canteen.param.ModifyPriceParam;
import com.woniuxy.project.campus.canteen.param.ModifyStatusParam;
import com.woniuxy.project.campus.canteen.param.ModifyTypeParam;
import com.woniuxy.project.campus.canteenModelform.SelectProShopInfo;

import java.io.IOException;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 猫将军
 * @since 2025年02月17日
 */
public interface ProductListService extends IService<ProductList> {

    void addProduct(AddProductParam bean) throws IOException;

    void modifyPrice(ModifyPriceParam bean);

    void modifyStatus(ModifyStatusParam bean);

    void modifyDiscount(ModifyDiscountParam bean);

    void modifyType(ModifyTypeParam bean);

    ProductList queryProductDetail(SelectProShopInfo form);

    List<ProductList> queryProductList(Integer shopId);

    ProductList queryProductDetailById(Integer productId);

    Integer queryProductDetailByShopId(Integer shopId);

    List<ProductList> selectProductDetail(String token);

    List<QueryProductAllDto> queryProductDetailByToken(String productName);

    String queryProductNameId(Integer productId);
}
